
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;

namespace Anonym.Data.Entities
{
    /// <summary>
    /// 公司
    /// </summary>
    public class Cms_Company
    {
        
        /// <summary>
        /// Id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public long ID { get; set; } = 0;

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; } = string.Empty;

        /// <summary>
        /// 电话
        /// </summary>
        public string Phone { get; set; } = string.Empty;

        /// <summary>
        /// 识别码
        /// </summary>
        public string IdCode { get; set; } = string.Empty;

        /// <summary>
        /// 地区code
        /// </summary>
        public string RegionCode { get; set; } = string.Empty;

        /// <summary>
        /// 注册日期
        /// </summary>
        public DateTime RegTime { get; set; } = new DateTime(1900,1,1);

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; } = string.Empty;

        /// <summary>
        /// 默认用户id；第一次初始化的用户
        /// </summary>
        public long DefaultUserId { get; set; } = 0;

        /// <summary>
        /// 默认用户组id；第一次初始化的用户组，管理员权限
        /// </summary>
        public long DefaultUserGroupId { get; set; } = 0;

        /// <summary>
        /// 默认密码；第一次初始化的用户的密码
        /// </summary>
        public string DefaultPassword { get; set; } = string.Empty;

        /// <summary>
        /// 状态；0：正常，1：禁用
        /// </summary>
        public int State { get; set; } = 0;

    }
}

